class Story{

	String title
	String introduction
	String body
	Boolean enabled
	String defaultPictureName
	String videoUrl
	Date dateCreated
	static hasMany = [storyImage:StoryImage]

	static constraints = {
		title(nullable:false, blank:false, maxSize:100)
		introduction(nullable:false, blank:false, maxSize:1000)
		body(nullable:false, blank:false, maxSize:4000)
		defaultPictureName(nullable:true, blank:true, maxSize:100)
		videoUrl(nullable:true, maxSize:500)
	}

}
